# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-melonds
pkgver=0_git20210411
pkgrel=0
_commit="657c729e7473e9b2c09ddf2eef9dcf4ba5b247ec"
pkgdesc="Nintendo DS emulator for libretro"
url="https://github.com/libretro/melonDS"
arch="all"
license="GPL-3.0-only"
makedepends="mesa-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/melonDS/archive/$_commit.tar.gz
	fix-build.patch
	"
builddir="$srcdir/melonDS-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 melonds_libretro.so "$pkgdir"/usr/lib/libretro/melonds_libretro.so
}

sha512sums="
be16e6bb3b6e3f9c2646949715182defe045338c7a888bdaf26cbf2fbfa54dde3d5c046f86b26aa036f4ee549c2e9a9aafe7d475ea95b3f0589aff01b7b18211  libretro-melonds-657c729e7473e9b2c09ddf2eef9dcf4ba5b247ec.tar.gz
7d1b3296501f16fd58b3e975315e4da1bd955460a50733a2072da7b586eed40d419e1156f3b48786ff2500b5f8694bb06f6eb34c186e8de99f70c34794717a09  fix-build.patch
"
